package edu.hrbeu.test;

/**
 * @author wzq
 * @create 2022-01-09-10:01
 */
public class Utils {
    public String methodA(){
        A first = new A();
        int result1 =first.A1(3, 4);
        return "methodA:"+result1;
    }
    public String methodB(){
        B second = new B();
        int result2 =second.B1(3, 4);
        return "methodB:"+result2;
    }
    public String methodC(){
        C third = new C();
        int result1 =third.C1(3, 4);
        return "methodC:"+result1;
    }
}
class A{
    private int a;
    private int b;
    public int A1(int a,int b){
        return a+b;
    }
}
class B{
    private int a;
    private int b;
    public int B1(int a,int b){
        return a-b;
    }
}
class C{
    private int a;
    private int b;
    public int C1(int a,int b){
        return a*b;
    }
}
